package com.zcs.shardingjdbc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zcs.shardingjdbc.entity.User;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author zcs
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
//    /**
//     * 查询数据
//     * @return
//     */
//    @SelectProvider(type = UserProvider.class, method = "list")
//    List<User> list();
//
//    /**
//     * 新增
//     * @param user
//     */
//    @InsertProvider(type = UserProvider.class, method = "insert")
//    @Options(useGeneratedKeys = true, keyColumn = "id", keyProperty = "id")
//    void insert(User user);
}
